package com.google.code.nexttraffic.web.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLEncoder;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class YPOIUtil extends HttpServlet {

	private static final long serialVersionUID = 1L;

	//야후 맵 키
	private final String YAHOO_MAP_KEY="dasXcejV34Gl3o1vF_JLmdb7TfH9ZO5fbVIpCvSN1.iG2GgJjYrdKauT0szH7ZWxE88PFfn1Csp..uvT";
	
	//야후 주소
	private final String Y_RGC_URL="http://kr.open.gugi.yahoo.com/service/poi.php";

	/**
	 * 주소 요청하고 output에 맞게 받기
	 * 인코딩 UTF-8
	 */
	private void execute(HttpServletRequest request, HttpServletResponse response){

		

	}


	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws ServletException, IOException {
		doPost(req, resp);
	}

	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
	throws ServletException, IOException {
		try {
			execute(req, resp);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}